package com.itheima.mybatis_plus.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.mybatis_plus.pojo.Course;

import java.util.List;

/**
 * @author huyoufu <https://github.com/huyoufu>
 * @TIME 2021/10/9 9:02
 * @description
 */
public interface CourseService extends IService<Course> {
    List<Course> findAll();

    Course findById(int id);

    void add(Course course);

    void update(Course course);

    void deleteById(int id);

    Page<Course> page1(int pageNumber, int pageSize);

    List findByCondition(String name, Integer userId);
}
